package ooday02homework;
//抽象类不能被实例化（new对象）----------------单独存在没有意义
public abstract class Animal {
    String name;
    int age;
    String color;

    Animal() {

    }

    Animal(String name, int age, String color) {
        this.age = age;
        this.color = color;
        this.name = name;
    }

    void drink() {
        System.out.println(name + "在喝水");
    }

    abstract void eat();//不完整，没有方法体，所在类不完整

}
